<?php

namespace App\Http\Requests\Admin;

use App\Http\Requests\Request;

class RecommendeditRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            //
            're_name'=>'required',
            're_description'=>'required',
            're_link'=>'required'
        ];
    }
     public function messages()
    {
        return  [
            're_name.required' => '商品名称必须填写',
            're_description.required' => '商品描述必须填写',
            're_link.required' => '推荐商品链接必须填写',
        ];
    }

}
